<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<link rel="stylesheet" type="text/css" href="../public/css/index.css" />
		<title>健康平台</title>
		<style type="text/css">
			body {
				background: #f9f9f9;
			}
		</style>
	</head>
	<body>
		<div id="example">
			<div style="height: 2.8rem;line-height: 2.8rem;color: #fff;font-size: 1.02rem;text-align: center;background: #107e34;">
				{{title}}
			</div>
			<div style="width: 100%;box-sizing: border-box;padding: 0 1.5rem;" v-if="dataDetail.FullHead">
				<div style="font-size: 1rem;color:#000000;text-align: center;font-weight: 600;padding:1.2rem 0">
					{{dataDetail.FullHead}}
				</div>
				<div style="background: #e0e0e0;box-sizing: border-box;padding:0.5rem 1.2rem;text-align: left;font-size: 0.9rem;">
					<div style="line-height: 2rem;color:#666;font-size: 0.85rem;" v-if="dataDetail.faburen">
						<span style="margin-right: 0.5rem;font-size: 0.9rem;color:#333;">发布单位：</span>
						{{dataDetail.faburen}}
					</div>

					<div style="line-height: 2rem;color:#666;font-size: 0.85rem;">
						<span style="margin-right: 0.5rem;font-size: 0.9rem;color:#333;">发布时间：</span>
						{{dataDetail.FabuDate}}
					</div>

				</div>
				<div style="box-sizing: border-box;padding:1.2rem 0;font-size: 0.9rem;">
					<div style="width: 100%;" v-html="dataDetail.txtContent"></div>
				</div>
			</div>


		</div>

		<script src="../public/script/plug/jquery-3.3.1.min.js"></script>
		<script src="../public/script/plug/vue.js"></script>
		<script src="../public/script/plug/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="../public/script/plug/layer/layer.js"></script>
		<script>
			function getUrl() {
				let url = decodeURI(location.href).split('?')[1];
				if (url) {
					let obj = {};
					let u = url.split('&');
					for (let i in u) {
						obj[u[i].split('=')[0]] = u[i].split('=')[1];
					}
					return obj;
				} else {
					return false;
				}
			}
			let objUrl = getUrl();
			if (objUrl && objUrl.title) {
				document.title = objUrl.title;
			} else {
				document.title = '详情';
			}
			var data = {
				title: objUrl.title || '详情',
				dataDetail: {}
			};
			var vm = new Vue({
				el: '#example',
				data: data,
				mounted(){
					let that=this;
					$.ajax({
						url:apiUrl()+'/home/detail2',
						type:'post',
						data:{
							Id:objUrl.id
						},success:function(d){
							let lists=d;
							lists.rt.FabuDate=formatDate(lists.rt.FabuDate,'yyyy-MM-dd hh:mm');
							that.dataDetail=lists.rt;
						}
					})
				}
			});
		</script>

	</body>
</html>
